CREATE DATABASE [FileSystem] ON  PRIMARY 
( NAME = N'FileSystem', FILENAME = N'c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\FileSystem.mdf' , SIZE = 2048KB , FILEGROWTH = 1024KB )
 LOG ON 
( NAME = N'FileSystem_log', FILENAME = N'c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\FileSystem_log.ldf' , SIZE = 1024KB , FILEGROWTH = 10%)
GO
EXEC dbo.sp_dbcmptlevel @dbname=N'FileSystem', @new_cmptlevel=90
GO
ALTER DATABASE [FileSystem] SET ANSI_NULL_DEFAULT OFF 
GO
ALTER DATABASE [FileSystem] SET ANSI_NULLS OFF 
GO
ALTER DATABASE [FileSystem] SET ANSI_PADDING OFF 
GO
ALTER DATABASE [FileSystem] SET ANSI_WARNINGS OFF 
GO
ALTER DATABASE [FileSystem] SET ARITHABORT OFF 
GO
ALTER DATABASE [FileSystem] SET AUTO_CLOSE OFF 
GO
ALTER DATABASE [FileSystem] SET AUTO_CREATE_STATISTICS ON 
GO
ALTER DATABASE [FileSystem] SET AUTO_SHRINK ON 
GO
ALTER DATABASE [FileSystem] SET AUTO_UPDATE_STATISTICS ON 
GO
ALTER DATABASE [FileSystem] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO
ALTER DATABASE [FileSystem] SET CURSOR_DEFAULT  GLOBAL 
GO
ALTER DATABASE [FileSystem] SET CONCAT_NULL_YIELDS_NULL OFF 
GO
ALTER DATABASE [FileSystem] SET NUMERIC_ROUNDABORT OFF 
GO
ALTER DATABASE [FileSystem] SET QUOTED_IDENTIFIER OFF 
GO
ALTER DATABASE [FileSystem] SET RECURSIVE_TRIGGERS OFF 
GO
ALTER DATABASE [FileSystem] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO
ALTER DATABASE [FileSystem] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO
ALTER DATABASE [FileSystem] SET PARAMETERIZATION SIMPLE 
GO
ALTER DATABASE [FileSystem] SET  READ_WRITE 
GO
ALTER DATABASE [FileSystem] SET RECOVERY SIMPLE 
GO
ALTER DATABASE [FileSystem] SET  MULTI_USER 
GO
ALTER DATABASE [FileSystem] SET PAGE_VERIFY CHECKSUM  
GO
USE [FileSystem]
GO
IF NOT EXISTS (SELECT name FROM sys.filegroups WHERE is_default=1 AND name = N'PRIMARY') ALTER DATABASE [FileSystem] MODIFY FILEGROUP [PRIMARY] DEFAULT
GO
CREATE USER [dbo] FOR LOGIN [filebrowser] WITH DEFAULT_SCHEMA=[dbo]